import { createApp } from 'vue'
import './style.css'
import 'element-plus/dist/index.css'
import pinia from './store/index'
import App from './App.vue'
import App2 from './App2.vue'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import router from './router/index'
const publicpath = import.meta.env.VITE_PUBLICPATH;
let app = null
if (publicpath) {
    app = createApp(App)
    app.use(router)
} else {
    app = createApp(App2)
}

app.use(pinia)
app.use(ElementPlus, { locale: zhCn })

app.mount('#app')
